package org.jeecg.modules.manager.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 销售订单表
 * @Author: jeecg-boot
 * @Date:   2021-11-19
 * @Version: V1.0
 */
@Data
@TableName("sale_order")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sale_order对象", description="销售订单表")
@NoArgsConstructor
@AllArgsConstructor
public class SaleOrder {

	/**主键*/
	@TableId
	@Excel(name = "主键", width = 15)
    @ApiModelProperty(value = "主键")
	private java.lang.String saleOrderId;

	@Excel(name = "主键", width = 15)
	@ApiModelProperty(value = "主键")
	private String orderGroupId;
	/**商品主键*/
	@Excel(name = "商品主键", width = 15)
    @ApiModelProperty(value = "商品主键")
	private java.lang.String saleOrderGoodsId;
	/**客户主键*/
	@Excel(name = "客户主键", width = 15)
    @ApiModelProperty(value = "客户主键")
	private java.lang.String saleOrderUserId;
	/**仓库主键*/
	@Excel(name = "仓库主键", width = 15)
    @ApiModelProperty(value = "仓库主键")
	private java.lang.String saleOrderRepoId;
	/**订单号*/
	@Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
	private java.lang.String saleOrderNumber;
	/**销售数量*/
	@Excel(name = "销售数量", width = 15)
    @ApiModelProperty(value = "销售数量")
	private java.lang.Integer saleOrderCount;
	/**单价*/
	@Excel(name = "单价", width = 15)
	@ApiModelProperty(value = "单价")
	private java.math.BigDecimal saleOrderPrice;
	/**总价*/
	@Excel(name = "总价", width = 15)
    @ApiModelProperty(value = "总价")
	private java.math.BigDecimal saleOrderTotal;
	/**订单状态(0:下单 1:确认收货 2:退货)*/
	@Excel(name = "订单状态(0:下单 1:确认收货 2:退货)", width = 15)
    @ApiModelProperty(value = "订单状态(0:下单 1:确认收货 2:退货)")
	private java.lang.Integer saleOrderStatus;
	/**描述*/
	@Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
	private java.lang.String saleOrderDescription;
	/**是否删除*/
	@Excel(name = "是否删除", width = 15)
    @ApiModelProperty(value = "是否删除")
	private java.lang.String deleted;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private java.lang.String createdBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createdTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private java.lang.String updatedBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updatedTime;
}
